class Persoan {
    constructor(name){
        this.name = name;
    }
    getName(){
        return this.name
    }
}
let p = new Persoan("上海");
console.log(p);
alert(222)